\documentclass{book}

\paperheight=9.5in
\paperwidth=6.5in
\pdfpageheight=9.5in
\pdfpagewidth=6.5in

\usepackage{graphicx}
\usepackage{makeidx}
\usepackage{footnote}
\makeindex

% goto http://web.image.ufl.edu/help/latex/latex_indexes.shtml
% to read about index creation
% summary:
% simple\index{simple}
% deeper\index{under!something!else}
% see\index{exampe|see{simple}}

\textheight     7in
\textwidth      4in
%\textheight     9in
%\textwidth      6.75in
\topmargin      0.25in
\oddsidemargin  0.1in
\evensidemargin -0.1in
\setcounter{tocdepth}{1}
\setcounter{secnumdepth}{3}

\begin{document}
\frontmatter
\pagestyle{empty}
\pagenumbering{roman}
\title{Building Web Applications with Gantry and Bigtop}
\author{Philip Crow}
\date{Version 1.1.1}
\maketitle

\noindent
\textbf{Building Web Applications with Gantry and Bigtop} \\
by Phil Crow \\
Version 1.1.1 for Gantry version 3.51 and Bigtop version 0.29\\
Note that later versions of both Gantry and Bigtop may be available,
but they are not described here.  Also note, that new features
added since Gantry version 3.45 and Bigtop version 0.20 may not be
fully covered.

\vspace{.2in}
\noindent
Copyright \copyright 2007-8 Phil Crow.

\noindent
All rights reserved except: you may use the code examples under
the terms of the Perl 5.8.6 license (or any later version of
Perl's license at your option) and you may make unmodified copies or
excerpts of this book for yourself and others, so long as you are not
compensated in any way for doing so.

\noindent
\textbf{About the Cover}
A gantry is most commonly a sign holder over a road or railroad.
The cover is the clever work of Derek Stout.  It features two gantries
holding signs for a mythical exit.  The gantry project is a framework
supporting web applications.  A big top is a place for a variety
of performers to meet.  For web applications those performers are
models, controllers, views, database definitions and the like.  All
of those and more can be described with the syntax of the bigtop code
(re)generation language for gantry.  \emph{Cue the circus music.}

\newpage
\pagestyle{headings}

\begin{center} \textit{For my parents, who taught me to ask and
answer questions.} \end{center}

%\makeatletter
%\renewcommand{\@pnumwidth}{1.75em}
%\renewcommand{\@tocrmarg}{5in}
%\makeatother
%{3.55em}

\tableofcontents
\listoffigures
\listoftables

\include{preface}

\mainmatter
\pagenumbering{arabic}

\part{Quick Start Tutorial}
\include{install}       % how to install gantry and bigtop
\include{simpleex}      % using bigtop and tentmaker to make an address book
\include{deploy}        % moving to mod_perl an Gantry::Conf
\include{runtests}      % the default tests and how to build your own
\part{Case Studies}
\include{contactus}     % web form, no database
\include{billingapp}    % original billing app
\include{jobadsapp}     % job ad management with AJAX
\part{Gantry Reference}
        %\include{gantrytour}    % inside a generated app
\include{fullcrud}      % all things AutoCRUD and CRUD
\include{plugins}       % making your own plugin (think mixin)
\include{site}          % the api of engines and template engines (doubtful)
\include{orms}          % supporting an ORM including helping AutoCRUD
\part{Bigtop Reference}
\include{backends}      % list of all backends, what they make and their conf
\include{tentref}       % comprehensive guide to tentmaker
\include{bigsyntax}     % comprehensive guide to bigtop syntax
%\include{parsing}       % background on recursive descent parsing
%\include{bigtopast}     % detailed walk through Bigtop's AST
%\include{backendanat}   % building a backend by example (the deparser)
\appendix
\include{sqlabstract}   % help on using DBIx::Class and SQL::Abstract
\backmatter
\addcontentsline{toc}{chapter}{Index}
\printindex
\end{document}
